<template>
  <view class="rootbox">
    <view class="boxItem">
      <view class="title">
        <view class="title_l">服务保障</view>
        <view class="title_r" @click="show = true">...</view>
      </view>

      <view class="iconList">
        <view class="item" v-for="(item, index) in iconList" :key="index">
          <image class="imgItem" :src="item.src"> </image>
          <view>{{ item.title }}</view>
        </view>
      </view>
    </view>

    <u-popup v-model="show" mode="bottom" border-radius="20" :closeable="true">
      <view class="content">
        <view class="title"> 服务保障 </view>
        <view class="list">
          <view class="item" v-for="(item, index) in iconList" :key="index">
            <view>
              <image class="imgItem" :src="item.src"> </image>
            </view>
            <view class="desc">
              <view> {{ item.title }} </view>
              <view class="tag"> {{ item.desc }} </view>
            </view>
          </view>
        </view>
      </view>
    </u-popup>
  </view>
</template>


<script>
export default {
  data() {
    return {
      show: false,
      iconList: [
        {
          src: require("@/static/details/safeguard01.png"),
          title: "孵化基地",
          desc: "初创企业入驻可享受创投基金、场地免租等多重优惠政策",
        },
        {
          src: require("@/static/details/safeguard02.png"),
          title: "扶持政策",
          desc: "有专业团队帮助企业申请高新技术企业",
        },
        {
          src: require("@/static/details/safeguard03.png"),
          title: "服务建设",
          desc:
            "园区会提供金融、研发、营销、广告等外围服务业，为整个园区发展提供整套的基础设施服务",
        },
        {
          src: require("@/static/details/safeguard04.png"),
          title: "管理系统",
          desc:
            "园区会形成自己的一套园区管理系统，大到业务办理，小到控制电器开关，实现园区系统化管理",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.rootbox {
  background: #fff;

  .boxItem {
    background: #fff;
    margin: 15px;
    padding: 15px 0;
  }
  .title {
    display: flex;
    justify-content: space-between;
    align-content: center;

    height: 60rpx;
    line-height: 60rpx;
    font-size: 30rpx;

    color: #020202;
    .title_l {
      font-weight: 600;
    }
  }

  .iconList {
    display: flex;
    justify-content: space-around;
    .item {
      margin: 10px 0;

      width: 25%;
      text-align: center;
      .imgItem {
        width: 56rpx;
        height: 56rpx;
        margin-bottom: 5px;
      }
    }
  }

  .content {
    padding: 30px 25px;
    .title {
      display: flex;
      justify-content: center;
      height: 50px;
      line-height: 50px;
      font-weight: 500;
    }

    .item {
      display: flex;

      margin-bottom: 20px;
      .imgItem {
        height: 84rpx;
        width: 84rpx;
        margin-right: 30rpx;
      }

      .desc {
        .tag {
          font-size: 12px;
          color: #999;
          margin: 5px 0;
          line-height: 17px;
        }
      }
    }
  }
}
</style>